This paper presents a simple and low-cost rocket orientation control system using the ESP8266 microcontroller and an MPU6050 sensor. The system measures tilt angles (pitch and roll) and uses a Kalman filter to reduce noise and fuse accelerometers and gyroscope data. Based on the filtered data, servo motors adjust the fins to keep the rocket stable during flight. The system was tested at around 50 Hz update rate and showed smoother and more reliable results compared to raw sensor data. This work helps students and researchers understand practical control using low-cost sensors. This project helps understand how microcontrollers can be used for control applications in rockets.
Introduction
Rocket flight stability can be disrupted by wind, vibration, or environmental changes. To maintain proper orientation, sensors and control systems are required. This project uses an MPU6050 sensor (accelerometer + gyroscope) with an ESP8266 microcontroller to stabilize a rocket via servo-controlled fins. Raw sensor data are noisy and prone to drift, so a Kalman Filter is applied to produce accurate pitch and roll angles, enabling smooth, real-time stabilization.
System Components:
Sensor: MPU6050 (3-axis accelerometer and gyroscope)
Controller: ESP8266 microcontroller
Actuators: Four SG90 servo motors for fins
Software: Arduino IDE with Kalman Filter library
Methodology & Operation:
Sensor Initialization & Calibration: ESP8266 communicates with MPU6050 via I²C; gyroscope bias is corrected.
Data Acquisition: Accelerometer measures tilt; gyroscope measures angular velocity.
Kalman Filter: Fuses accelerometer and gyroscope data to reduce noise and drift, producing smooth, accurate orientation angles.
Angle Mapping & Servo Control: Filtered angles are constrained to ±45°, mapped to servo range (0–180°), smoothed, and used to actuate fins.
Closed-Loop Feedback: The process runs continuously at ~50 Hz, maintaining stable rocket orientation.
Results & Validation:
Kalman Filter significantly reduced sensor noise and stabilized angle measurements.
Servo response became fast and smooth, correcting tilt within ~0.5 seconds.
System achieved stable control compared to unfiltered raw sensor data.
Easy programming via Arduino IDE with strong community support.
Demonstrates that affordable microcontrollers can perform reliable real-time stabilization for aerospace applications.
Conclusion
The system successfully demonstrated how ESP8266 and MPU6050 can be used for stabilizing a rocket model. The Kalman filter helped in getting smooth angle readings, which improved control accuracy. The design is simple, cost-effective, and suitable for student-level aerospace projects.
This work also gave a better understanding of how sensors, filters, and microcontrollers can work together for real-time control. It can be further improved by adding wireless data monitoring or testing it on a larger rocket model in future.
References
[1] J. Kwon and D. Park, \"Efficient Sensor Processing Technique Using Kalman Filter-Based Velocity Prediction in Large-Scale Vehicle IoT Application,\" in IEEE Access, vol. 10, pp. 116735-116746, 2022
[2] https://www.studocu.com/row/document/marmara-universitesi/digital-design/kalman-apogee-ii/110188012
[3] R. E. Kalman, \"A New Approach to Linear Filtering and Prediction Problems,\" Transactions of the ASME – Journal of Basic Engineering, vol. 82, pp. 35–45, 1960.
[4] M. S. Grewal and A. P. Andrews, Kalman Filtering: Theory and Practice wUsing MATLAB, 4th ed., Wiley-IEEE Press, 2014.
[5] M. S. Seif and S. A. T. Elfouly, \"Design and Implementation of Attitude Control System for Sounding Rocket Using Kalman Filter,\" International Journal of Control, Automation and Systems, vol. 12, no. 6, pp. 1345–1354, Dec. 2014.
[6] H. T. Khader and K. M. Hassan, “Design and Simulation of a Low-Cost IMU-Based Rocket Flight Controller,” IEEE Access, vol. 8, pp. 146075–146088, 2020.
[7] D. Wang and H. Wang, “An Improved Kalman Filter for Attitude Estimation Using MEMS IMU,” Sensors, vol. 20, no. 3, p. 719, 2020.
[8] M. S. Seif and S. A. T. Elfouly, \"Design and Implementation of Attitude Control System for Sounding Rocket Using Kalman Filter,\" International Journal of Control, Automation and Systems, vol. 12, no. 6, pp. 1345–1354, Dec. 2014.
[9] Espressif Systems, ESP32 Technical Reference Manual, Version 4.4, Espressif, 2024. [Online]. Available:
https://www.espressif.com/sites/default/files/documentation/esp32_technical_reference_manual_en.pdf
[10] InvenSense, MPU-6050 Datasheet and Register Map, Revision 4.2, 2013. [Online]. Available: https://invensense.tdk.com/wp-content/uploads/2015/02/MPU-6000-Register-Map1.pdf
[11] T. Lang, C. Xiao, and M. Liu, \"Design and Implementation of Attitude Estimation Using Kalman Filter for UAVs,\" International Journal of Aerospace Engineering, vol. 2017, Article ID 6090783, 2017.
[12] A. Leu, \"Comparison of Complementary and Kalman Filter Techniques for Estimating Attitude and Position of a Moving Vehicle,\" IEEE Sensors Journal, vol. 16, no. 10, pp. 3993–4003, May 2016.
[13] E. A. Wan and R. van der Merwe, “The Unscented Kalman Filter for Nonlinear Estimation,” in Proceedings of the IEEE Adaptive Systems for Signal Processing, Communications, and Control Symposium, 2000, pp. 153–158.